<?php
/**
 * @Author: liuhongbin
 * @Email: 514660094@qq.com
 * @Date: 2019-02-12 16:15:10
 * @Description:
 * @LastEditors: liuhongbin
 * @LastEditTime: xxx
 */

use think\facade\Route;

/**
 * 附件 相关路由
 */
Route::group('attachment', function () {
    /**************************************菜单******************************************************/
    //附件管理
    Route::resource("index", 'v1.attachment.Attachment');
    Route::resource("group", 'v1.attachment.AttachmentGroup');

    //获取列表
    Route::post("list", 'v1.attachment.Attachment/list');
    //上传
    Route::post("upload", 'v1.attachment.Attachment/upload');
    //移动
    Route::post("move", 'v1.attachment.Attachment/move');
    //删除
    Route::post("delete", "v1.attachment.Attachment/delete");

    //图片本地化
    Route::get('down', 'v1.attachment.Attachment/down');

});
